using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter10
{
	/// <summary>
	/// Example05: Uniform Thin Hoop
	/// Find the moment of inertia of a uniform thin hoop of 
	/// mass M and radius R about an axis perpendicular to 
	/// the plane of the hoop and passing through its center 
	/// (Figure 10.9)
	/// I_z = MR^2
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 10.0;
			L.RigidBody ring = new L.RigidBody(m);
			L.Length radius = new L.Length();
			radius.m = 5.0;
			ring.SetRing(radius);
			L.MomentOfInertia I = ring.RigidBodyMomentOfInertia;
			result+=Convert.ToString(I.ZZ);            
		}
	}
}
